package com.knowledge.knowledge_notes.dao;

import com.knowledge.knowledge_notes.pojo.LoginUser;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserDao  extends JpaRepository<LoginUser,Integer> {

    LoginUser findByUserName(String userName);

    LoginUser getByUserNameAndPassword(String userName, String password);

}
